﻿<UserControl x:Class="ViewParametrerGeneration"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <GroupBox Margin="5" Header="Parametrer les générations" VerticalAlignment="Top"  >
            <StackPanel >
            <DataGrid Name="Dgrid" ItemsSource="{Binding CorrespGenTarifCompt}" AutoGenerateColumns="False" Margin="5" ColumnWidth="*" CanUserReorderColumns="False"  CanUserAddRows="False" CanUserDeleteRows="False"   >
                <DataGrid.Columns>
                    <DataGridTextColumn Header="Generation Tarif CRT" IsReadOnly="True" Width="*" Binding="{Binding Generation_Tarif}" />
                    <DataGridTextColumn Header="Generation PMT" Width="*" Binding="{Binding Generation_Comptable}" />                
                </DataGrid.Columns>
            </DataGrid>
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
                    <Button Content="Sauvegarder les modifications" Margin="2" Padding="2" />
                </StackPanel>
            </StackPanel>
        </GroupBox>
    </Grid>
</UserControl>
